// var http = require('http');
// var url = require('url');
// http.createServer((req, resp)=>{
//     console.log(req.headers.cookie);
//     resp.setHeader('Set-Cookie', ['a=000', 't=1111', 'w=2222']);
//     resp.end('abcde');
// }).listen(3000);

var express = require('express')
var path = require('path')

let app = express();
console.log(path.join(__dirname, 'public'));
app.use(express.static(path.join(__dirname, 'public')));
app.get('*', function (req, resp) {
    setTimeout(function () {
        resp.end(`{"abc":"111"}`);
    }, 500);
});
app.listen(8000);

// var path = require('path');
//
// var p = './test.js';
// console.log(require(p));
